package com.hrzyit.whistle.user.ui.activity

import android.os.Bundle
import android.view.View
import com.alibaba.android.arouter.facade.annotation.Route
import com.hrzyit.base.ext.onClick
import com.hrzyit.base.ui.activity.BaseMvpActivity
import com.hrzyit.provider.routers.RouterPath
import com.hrzyit.whistle.user.R
import com.hrzyit.whistle.user.presenter.UserInfoPresenter
import com.hrzyit.whistle.user.presenter.view.UserInfoView
import kotlinx.android.synthetic.main.activity_user_info.*

/**
 * 个人信息界面 Activity
 */
@Route(path = RouterPath.UserCenter.PATH_USER_INFO)
class UserInfoActivity : BaseMvpActivity<UserInfoPresenter>(), UserInfoView {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_user_info)

        initView()
    }

    /**
     * 初始化视图
     */
    private fun initView() {

        // 注册拨打电话操作
        mCallPhoneIv.onClick {
            mMobileTv?.let {
                // 调用拨打电话组件
//                startCallPhone(it.text.toString())
            }
        }

    }

    override fun injectComponent() {
    }

}
